<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../org/angular.min.js" ></script>
	</head>
	<body>
		<div ng-app = "app" ng-controller = "ctrl" ng-init="aaaa">
			<table>
				<tr>
					<td>
						<input type="checkbox" ng-model="all"  />
					    <span ng-bind="all?'取消':'全选'"></span>
					</td>
							<td>名字</td>
							<td>链接</td>
						</tr>
						<tr ng-repeat="v in user">
							<td>
								<input type="checkbox" ng-checked="all" />
							</td>
							<td>{{v.name}}</td>
							<td>{{v.url}}</td>
						</tr>
			</table>
		</div> 
		
		<script>
			var myApp = angular.module('app',[]);
			myApp.controller("ctrl",['$scope',function($scope){
				$scope.user=[
				    {name:"aaa",url:"aaa.com"},
				    {name:"bbb",url:"bbb.com"},
				    {name:"ccc",url:"ccc.com"}
				];
			}]);
		</script>
	</body>
</html>
